package com.pkx.cloud.fse7.dms.token.feign;

import com.pkx.cloud.fse7.dms.token.entity.DoorIssueRequest;
import com.pkx.cloud.fse7.dms.token.entity.LossReport;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "token", url = "${pkx.base-url}/api/TokenService")
public interface TokenFeign {
    @PostMapping("LossReport")
    String lossReport(@RequestBody LossReport lossReport);

    /**
     * @param lossReport
     * @return
     */
    @PostMapping("UnLost")
    String unLost(@RequestBody LossReport lossReport);

    /**
     * 门禁注销
     *
     * @param lossReport
     * @return
     */
    @PostMapping("DoorUnregister")
    String doorUnregister(@RequestBody LossReport lossReport);

    /**
     * 发卡
     *
     * @param doorIssueRequest
     * @return
     */
    @PostMapping("DoorIssue")
    String doorIssue(@RequestBody DoorIssueRequest doorIssueRequest);
}
